package com.winenine999.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.winenine999.custom.dao.CSyorgMapper;
import com.winenine999.generator.dao.SyorgMapper;
import com.winenine999.model.Syorg;
import com.winenine999.service.ISyorgService;
@Service
public class SyorgService implements ISyorgService {
	@Autowired
	private SyorgMapper syorgMapper;
	@Autowired
	private CSyorgMapper cSyorgMapper;
	
	/**
	 * 根据id删syorg
	 */
	@Override
	public int deleteByPrimaryKey(Integer id) {
		
		return syorgMapper.deleteByPrimaryKey(id);
	}
	/**
	 * 选择字段添加syorg
	 */
	@Override
	public int insertSelective(Syorg Syorg) {
		
		return syorgMapper.insertSelective(Syorg);
	}
	/**
	 * 选择字段修改syorg
	 */
	@Override
	public int updateByPrimaryKeySelective(Syorg Syorg) {
		
		return syorgMapper.updateByPrimaryKeySelective(Syorg);
	}
	/**
	 * 根据id查询syorg
	 */
	@Override
	public Syorg selectByPrimaryKey(Integer id) {
		
		return syorgMapper.selectByPrimaryKey(id);
	}
	//---------------------------------custom--------------------------
	/**
	 * 全查syorgs
	 */
	@Override
	public List<Map<String, Object>> findAllSyorgs() {
		
		return cSyorgMapper.findAllSyorgs();
	}

}
